Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't include inactive PMTs in S1 pattern fit #663

Merged
merged 1 commit into from
Jan 17, 2018
Merged

Conversation

JelleAalbers
Copy link
Contributor

@JelleAalbers JelleAalbers commented Jan 17, 2018

The S1 pattern fit calculation currently doesn't account for inactive PMTs when comparing the observed pattern to the MC map. This means the pattern fit values are unnecessarily bad, and the power of S1 pattern fit cut is much reduced.

This fixes the bug. I checked using a simulated 1400 PE S1 from an interaction at (x=0, y=0, z=-50):

Current master:
	s1_pattern_fit = 803
	s1_pattern_fit_hits = 343
	
After fix:
	s1_pattern_fit = 314
	s1_pattern_fit_hits = 237

At low-energy the effects might be a bit less dramatic, since the S1 hitpatterns are far more stochastic.

As an 'interesting' side effect, this currently changes @sanderbreur's hitpattern-based "saturation" correction (which is unused at the moment) to also fill in the area of dead PMTs using the MC LCE map. Thus the S1 light yield map should be more uniform after applying the correction: would be interesting to check if this is true once we remake the S1 LCE map. Still, we probably don't want this: it means you can't use the saturation correction alongside the current S1 spatial correction. This can be easily fixed, but my mind has stopped working and just fixing this bug is more important.

Thanks to @coderdj for spotting the problem.

@feigaodm
Copy link
Member

Thanks @JelleAalbers! For SR1 analysis purpose, we shall modify HAX treemaker to include this list as well. I guess the gains can be extracted from rundb so that we can consider run dependence as well. @skazama , can you modify the corresponding code in HAX and we can regrow minitrees right afterwards.

@coderdj
Copy link
Contributor

coderdj commented Jan 17, 2018

@skazama no need. I already modified it. We'll merge that in with the new s2 pattern variable hopefully today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants